import request from "@/utils/request";

export function getAll(data) {
  return request({
    url: "/comitem/getAll",
    method: "GET",
    params: data
  });
}

export function findByItemid(data) {
  return request({
    url: "/comitem/findByItemidPad",
    method: "get",
    params: {
      itemid: data
    }
  });
}

export function getComcode() {
  return request({
    url: "/comitem/getComcode",
    method: "get",
    params: {
    }
  });
}
export function findByBarcode(data) {
  return request({
    url: "/comitem/findByBarcode",
    method: "get",
    params: {
      "barcode":data
    }
  });
}